
export interface IPoint {
    x: number,
    y: number,
}

export function ToPoint(params: Array<any>): IPoint {
    return <IPoint>{
        x: params[0],
        y: params[1]
    };
}